import { defineStore } from 'pinia';
import type { ICanvasState } from './types';
/**
 * 配置文件
 */
export const useCanvasStore = defineStore('canvasStore', {
  state: (): ICanvasState => {
    return {
        meta2dDatas: null, //2d元数据
        originalMeta2d: null, //2d原始数据
        variableDataMeta2d: null, //2d变量数据
        meta2dGraphicGroups: null, //2d图形组
    };
  },
  getters: {},
  actions: {},
  persist: {
    storage: sessionStorage,
  },
});
